import request from './request'

export function getTagList(params) {
  return request({ url: '/tags', method: 'get', params })
}

export function getAllTags() {
  return request({ url: '/tags/all', method: 'get' })
}

export function createTag(data) {
  return request({ url: '/tags', method: 'post', data })
}

export function updateTag(id, data) {
  return request({ url: `/tags/${id}`, method: 'put', data })
}

export function deleteTag(id) {
  return request({ url: `/tags/${id}`, method: 'delete' })
}
